import { Map } from 'immutable'
const initState = Map({
  proList: [],
  bannerList: []
})
const reducerName = (state = initState, action) => {
  switch (action.type) {
    case 'UPDATE_BANNER_LIST':
      // return Object.assign({}, state, { bannerList: action.payload })
      return state.set('bannerList', action.payload)
    case 'UPDATE_PRO_LIST':
      return state.set('proList', action.payload)
    default:
      return state
  }
}

export default reducerName